package com.zhejiangzhengyuan.municipal_common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author linju
 * @since 2019-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Problems对象", description = "")
public class Problems extends Model<Problems> {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty(value = "自增主键")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty(value = "问题点编号")
  private String problemsCode;

  @ApiModelProperty(value = "工程点号")
  private String projectNum;

  @ApiModelProperty(value = "问题点坐标")
  private String geometry;

  @ApiModelProperty(value = "所属区域")
  private String area;

  @ApiModelProperty(value = "缺陷项目代码")
  private String defectItemCode;

  @ApiModelProperty(value = "缺陷类型")
  private String defectType;

  @ApiModelProperty(value = "管道编号")
  private String pipeNumber;

  @ApiModelProperty(value = "缺陷描述")
  private String defectDescription;

  @ApiModelProperty(value = "监测人员")
  private String monitorUser;

  @ApiModelProperty(value = "整改单位")
  private String rectifyUnit;

  @ApiModelProperty(value = "备注")
  private String remark;

  private Timestamp createTime;

  private Timestamp updateTime;

  @Override
  protected Serializable pkVal() {
    return this.id;
  }
}
